
<template>
  <van-nav-bar title="订单" left-text="返回" left-arrow @click-left="handleBack" />
  <div class="confirm">
    <img src="../../../public/zhifu.png" alt="">
    <p>支付成功!</p>

  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
import useCartStore from '../../store/cart'

const store = useCartStore()

const router = useRouter()
// 返回到购物车界面
function handleBack() {
  router.back()
  store.removeChenckedCart()
}


</script>

<style scoped>
.confirm {
  width: 390px;
  height: 400px;
 
}

.confirm img {
  width: 100px;
  height: 100px;
  margin-top:200px;
  margin-right: 145px;
  margin-left: 145px;
}

.confirm p {
  
  text-align: center;
}
</style>
